import 'package:flutter/services.dart';

class FlutterNativeBridge {
  static const platform = MethodChannel('com.example/native_channel');

  static Future<void> init() async {
    platform.setMethodCallHandler((MethodCall call) async {
      switch (call.method) {
        case 'callDartMethod':
          return 'Hello from Dart';
        default:
          throw MissingPluginException('Not implemented');
      }
    });
  }
}
